<template>
	<el-card class="box-card">
		<el-form :model="editForm" ref="editForm">
			<el-form-item label="轮播图片">
				<el-upload action="" :thumbnail-mode="true" :default-file-list="fileList">
					
				</el-upload>
			</el-form-item>
			<el-form-item label="轮播序号">
				<el-input v-model="editForm.number"></el-input>
				<el-checkbox v-model="checked" checked>是否启用</el-checkbox>
			</el-form-item>
			<el-form-item label="轮播图超链接">
				<el-input type="textarea" v-model="editForm.textarea"></el-input>
			</el-form-item>
			<el-form-item label="城市">
				<el-input v-model="editForm.citys"></el-input>
			</el-form-item>
		</el-form>
		<el-col :span="24">
			<el-button style="float:left;" type="primary">新增</el-button>
			<el-button style="float:right;">返回</el-button>
		</el-col>
	</el-card>
</template>
<style type="text/css">
</style>
<script type="text/javascript">
	export default {
		data(){
			return {
				fileList: [{name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}, {name: 'food2.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}],
				editForm : {
					number : 0,
					textarea : "http://www.baidu.com",
					citys : "上海市"
				}
			}
		}
	}
</script>